{% extends 'layout.html' %}
{% load staticfiles %}

{% block css %}
    {{ form.media.css }}
{% endblock %}

{% block content %}
    <div class="luffy-container">
        <form class="form-horizontal" method="post" enctype="multipart/form-data" novalidate>
            {% csrf_token %}
            {% for field in form %}
                <div class="form-group">
                    <label class="col-sm-12">{{ field.label }}</label>
                    <div class="col-sm-12">
                        {{ field }}
                        <span style="color: red;">{{ field.errors.0 }}</span>
                    </div>
                </div>
            {% endfor %}
            <div class="form-group">
                <div class="col-sm-12">
                    <input type="submit" value="保 存" class="btn btn-primary" name="_save">
                </div>
            </div>
        </form>

    </div>

{% endblock %}


{% block js %}
    {{ form.media.js }}
{% endblock %}